package day_06;

import java.util.Scanner;

/**
 * @ClassName day06_morning_2
 * @Description TODO
 * @Author hp
 * @Date 2021/6/8 8:38
 * @Version 1.0
 **/
public class day06_morning_2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next() ;
        char[] strs = str.toLowerCase().toCharArray();
        int[] count = new int[26];
        for (int i = 0; i < strs.length; i++) {
            if(strs[i]>=97&&strs[i]<=123){
                count[strs[i]-97]++;
            }
        }
        for (int i = 0; i < count.length; i++) {
            if(count[i]!=0){
                System.out.println((char)(i+97)+"->"+count[i]);
            }
        }

    }


}
